//
//  ToolsCell.m
//  微信小助手
//
//  Created by Away on 13-5-27.
//  Copyright (c) 2013年 Jc Zhang. All rights reserved.
//

#import "ToolsCell.h"
#import "BanBu_ImageView.h"

@implementation ToolsCell

-(void)dealloc
{
    [_tLabel release];
    [_iView release];
    [_detailLabel release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 89, 320, 1.0)];
        lineView.backgroundColor = [UIColor colorWithRed:224.0/255 green:224.0/255 blue:224.0/255 alpha:1.0];
        [self.contentView addSubview:lineView];
        [lineView release];
        
        BanBu_ImageView *backImage = [[BanBu_ImageView alloc] initWithBackGroundImageType:UIImageViewCreatTypeCell];
        backImage.frame = CGRectMake(0, 0, 320, 88);
        self.backgroundView = backImage;
        [backImage release];
        
        
        UIImageView *image= [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 70,70)];
        self.iView = image;
        [self.contentView addSubview:self.iView];
        [image release];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(95, 28, 200, 40)];
        [label setFont:[UIFont systemFontOfSize:18]];
        label.backgroundColor = [UIColor clearColor];
        self.tLabel = label;
        [self.contentView addSubview:self.tLabel];
        [label release];
        
        
        UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(95, 39, 210, 49)];
        label1.numberOfLines = 2;
        label1.backgroundColor = [UIColor clearColor];
        label1.lineBreakMode = kTextLineBreakByCharWrapping;
        [label1 setFont:[UIFont systemFontOfSize:12]];
        label1.textColor = [UIColor grayColor];
        self.detailLabel = label1;
        label1.textAlignment = UITextAlignmentLeft;
        [label1 release];
        
    }
    return self;
}


@end
